package org.learn.spring5.service.impl;

import org.learn.spring5.service.UserService;
import org.springframework.stereotype.Component;

@Component         //1
 public class UserServiceImpl implements UserService {

    //2
    public void add() {
        System.out.println("add");
    }

    public void del() {
        System.out.println("del");
    }

    public void update() {
        System.out.println("update");
    }

    public void query() {
        System.out.println("query");
    }
}
